<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>错误页面 - xbcode</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f8d7da;
            color: #721c24;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
            text-align: center;
        }
        .container {
            width: 500px;
            height: 300px;
            background-color: #fff;
            border: 1px solid #f5c6cb;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        .exception {
            overflow: hidden;
            word-wrap: break-word;
            white-space: normal;
        }
        .message {
            overflow: hidden;
            word-wrap: break-word;
            white-space: normal;
        }
        h1 {
            font-size: 48px;
            margin: 0;
        }
        p {
            font-size: 18px;
        }
        a {
            display: inline-block;
            margin-top: 20px;
            padding: 10px 20px;
            background-color: #f5c6cb;
            color: #721c24;
            text-decoration: none;
            border-radius: 5px;
            transition: background-color 0.3s;
        }
        a:hover {
            background-color: #ec6a8d;
        }
    </style>
</head>
<body>
    <div class="container">
        <h2>出错了!</h2>
        <div class="content">
            <div class="exception">
                {$message}
            </div>
            {if $debug}
            <div class="message">
                <div>{$file}</div>
                <div>错误行：{$line}</div>
            </div>
            {/if}
        </div>
        <a href="/">返回首页</a>
    </div>
</body>
</html>